import { View } from '@tarojs/components';
import './index.less';

interface IProps {
  content: string | number;
  bgColor: string;
  style?: Object;
}

const TagComp = (props: IProps) => {
  return (
    <View
      className='tag-container'
      style={ {backgroundColor: props.bgColor, ...props.style} }
    >
      { props.content }
    </View>
  );
};

export default TagComp;
